package com.template.templateuser.domain.service;

import com.template.templateuser.domain.dto.SysRoleDTO;

import java.util.List;
import java.util.Set;

public interface SysRoleService {
    int saveSysRole(SysRoleDTO sysRoleDTO);

    int updateSysRole(Long id, SysRoleDTO sysRoleDTO);

    SysRoleDTO querySysRole(Long id);

    int deleteSysRole(Long id);

    int saveMenuRole(Long id, Set<Long> menuIds);

    int saveRoleDept(Long id, Set<Long> deptIds);

    int saveUserRole(Long id, Set<Long> roleIds);

    List<String> getUserRolekeyList(Long userId);

    List<String> getUserMenukeyList(Long userId);
}
